package com.tfswue.jqr.apis;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import com.tfswue.jqr.entity.Book;


@FeignClient(name = "book-service")
public interface BookClient {
    @GetMapping("/book/{id}")
    public Book getBookById(@PathVariable("id") Long id);
}
